package com.hjc.service.impl;

import com.hjc.entity.Result;
import com.hjc.entity.Statistics;
import com.hjc.mapper.StatisticsMapper;
import com.hjc.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    @Override
    public Result findStatistics() {
        List<Statistics> statisticsList = statisticsMapper.selectStoreInvent();
        return Result.ok(statisticsList);
    }
}
